package com.jf3q.common.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jf3q.common.domain.EduCourse;
import com.jf3q.common.service.EduCourseService;
import com.jf3q.common.mapper.EduCourseMapper;
import com.jf3q.common.vo.CourseWebVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 李天琪
* @description 针对表【edu_course(课程)】的数据库操作Service实现
* @createDate 2024-06-06 13:51:31
*/
@Service
public class EduCourseServiceImpl extends ServiceImpl<EduCourseMapper, EduCourse>
    implements EduCourseService{

    @Autowired
    EduCourseMapper courseMapper;

    @Override
    public List<EduCourse> selectTeacher() {
        return courseMapper.selectTeacher();
    }

    @Override
    public CourseWebVo courseById(String id) {
        return courseMapper.courseById(id);
    }

    @Override
    public List<EduCourse> courseListById(String id) {
        return courseMapper.courseListById(id);
    }

    @Override
    public EduCourse selectById(String courseId) {
        return courseMapper.selectByCId(courseId);
    }
}




